//
//  WaterfallCollectionLayout.h
//  JerryIos
//
//  Created by 王军 on 2018/2/14.
//  Copyright © 2018年 王军. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef  CGFloat(^itemHeightBlock)(NSIndexPath* index);

@interface WaterfallCollectionLayout : UICollectionViewLayout

@property(nonatomic,strong )itemHeightBlock heightBlock ;
@property(nonatomic,assign,readonly) CGFloat itemWidth;

-(instancetype)initWithItemsHeightBlock:(itemHeightBlock)block;

@end

